QT       += core gui serialport network serialbus
QT       += network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ads1115/ads1115.cpp \
    aliyun_link_mode/dtu_4g.cpp \
    aliyun_link_mode/nb_iot.cpp \
    can_bus/can_bus_dev.cpp \
    can_bus/dialog_can_config.cpp \
    dialog_off_line_config.cpp \
    i2c_dev/i2c_dev.cpp \
    link_else_loongson/link_else_loongson_dialog.cpp \
    main.cpp \
    mqtt_dev/mqtt_dev.cpp \
    pcf8591/pcf8591.cpp \
    pub_aliyun_thread/pub_aliyun_thread.cpp \
    pwm/gpio_pwm.cpp \
    pwm/gpio_pwm_thread.cpp \
    pwm/pwm.cpp \
    rs485_dev/rs485_dev.cpp \
    set_aliyun_link_dialog.cpp \
    widget.cpp

HEADERS += \
    ads1115/ads1115.h \
    aliyun_link_mode/dtu_4g.h \
    aliyun_link_mode/nb_iot.h \
    can_bus/can_bus_dev.h \
    can_bus/dialog_can_config.h \
    dialog_off_line_config.h \
    i2c_dev/i2c_dev.h \
    link_else_loongson/link_else_loongson_dialog.h \
    mqtt_dev/mqtt_dev.h \
    pcf8591/pcf8591.h \
    pub_aliyun_thread/pub_aliyun_thread.h \
    pwm/gpio_pwm.h \
    pwm/gpio_pwm_thread.h \
    pwm/pwm.h \
    rs485_dev/rs485_dev.h \
    set_aliyun_link_dialog.h \
    widget.h

FORMS += \
    can_bus/dialog_can_config.ui \
    dialog_off_line_config.ui \
    link_else_loongson/link_else_loongson_dialog.ui \
    set_aliyun_link_dialog.ui \
    widget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

unix:!macx: LIBS += -L$$PWD/../../../src/paho.mqtt.c-1.3.8/install/lib/ -lpaho-mqtt3c

INCLUDEPATH += $$PWD/../../../src/paho.mqtt.c-1.3.8/install/include
DEPENDPATH += $$PWD/../../../src/paho.mqtt.c-1.3.8/install/include
